package com.rd.student.jike.class2.lihongming.week731_806.Day0803.Pet;

/**
 * @Auther:Heinrich
 * @Date:2023/8/2-08-02-14:33
 * @Description:c230802
 * @version:1.0
 */
public class Lady {
    String name;
    Animal pet;

    public Lady(String name, Animal pet) {
        this.name = name;
        this.pet = pet;
    }
    public String buy(){
        return name+"走进宠物店买了一只"+pet.Type+",它的名字叫"+pet.name+
                ",它"+pet.getColor()+",它在开心的"+pet.enjoy();
    }

    @Override
    public String toString() {
        return name + "养了一只" + pet.Type+
               ",它的名字叫"+pet.name+",它"+pet.getColor()+",它正在"+pet.enjoy();
    }
}
